package com.Txunda.fxw.ui.activity.open;

import android.os.Bundle;

import com.Txunda.fxw.R;
import com.Txunda.fxw.ui.MainActivity;
import com.Txunda.fxw.ui.base.BaseAty;

import java.util.Timer;
import java.util.TimerTask;

public class SplashAty extends BaseAty {

	private Timer timer;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

	}

	@Override
	protected int getLayoutResId() {

		return R.layout.aty_splash_aty;
	}

	@Override
	protected void initialized() {
		timer =new Timer();
		TimerTask timerTask =new TimerTask() {

			@Override
			public void run() {
				startActivity(MainActivity.class,null);
				finish();
			}
		};
		timer.schedule(timerTask, 3000);    //3秒执行一次

	}

	@Override
	protected void requestData() {

	}


}
